package runner.ui;

import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: AVK
 * Date: 09.11.13
 * Time: 0:23
 * To change this template use File | Settings | File Templates.
 */
public class TreeItem  extends JPanel {
    JLabel label;
    JCheckBox checkBox;
    TreeItem() {
        this.setLayout(new BorderLayout());
        label = new JLabel();
        this.add(label, BorderLayout.EAST);
        checkBox = new JCheckBox();
        checkBox.setEnabled(true);
        this.add(checkBox, BorderLayout.WEST);
        this.setEnabled(true);

    }
    TreeItem(String text, boolean isSelected) {
        this();
        label.setText(text);
        checkBox.setSelected(isSelected);
    }

}
